<!DOCTYPE html>
<html lang="th" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="UTF-8">
		<title>忘记密码-分销系统后台</title>
		<script th:src="@{/layui/layui.js}" type="text/javascript"></script>
		<link th:href="@{/layui/css/layui.css}" rel="stylesheet" />
	</head>
	<body class="layui-bg-gray">
		<div class="layui-bg-black" style="height: 50px;">
			<div style="float: left;color: #fff;font-size: 15pt;margin: 10px 20px;">
				分销商城后台
			</div>
		</div>
		<div class="layui-container">
			<div style="text-align: center;font-size: 30pt;
				margin: 70px 0px 50px 0px;font-weight: 300;color: #000;">忘记密码
			</div>
			<div class="layui-panel" style="border-radius: 5px;">
				<div style="height: 450px;text-align: center;">
					<div style="margin-top: 30px;font-size: 15px;color: #000;">
						<img th:src="@{/img/sendEmail.jpg}" style="width: 400px;height: 230px;" />
					</div>
					<div style="margin-top: 30px;font-size: 20px;color: #000;font-weight: 600;">
						已发送密码重设邮件。
					</div>
					<div style="margin-top: 30px;font-size: 16px;color: #000;">
						已发送 至您输入的邮箱：&nbsp;<span th:text="${email}"></span>&nbsp;请查看邮箱并根据提示进行操作。
					</div>
					<form class="layui-form">
					
					<input type="hidden" name="email" th:value="${email}" />
					<div style="margin: 30px auto;width: 600px;">
						<a class="layui-btn layui-btn-normal layui-btn-fluid" style="height: 45px;" lay-submit="" lay-filter="go">前往邮箱</a>
					</div>
					</form>
				</div>
			</div>
		</div>	
		<script>
			layui.use(['form'],function(){
				var form = layui.form;
				
				form.on('submit(go)',function(data){
					var formData = data.field;
					var email = FormData.email;
					if("[0-9]{6,12}@qq.com".match(email)){
						window.open("https://mail.qq.com");
					}else if("[0-9]{6,12}@163.com".match(email)){
						window.open("https://email.163.com");
					}
				})
			});
		</script>
	</body>
</html>
